/* 2012/4/15 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Cosmos.Windows.Forms
{
    /// <summary>
    ///  A tree node denoting a folder.
    /// </summary>
    class FolderTreeNode : TreeNode
    {
        /// <summary>
        /// The path of folder denoted by this node.
        /// </summary>
        private string _path;

        /// <summary>
        /// Initializes a instance of FolderTreeNode.
        /// </summary>
        /// <param name="text">The name of this node.</param>
        /// <param name="path">The path denoted by this node.</param>
        public FolderTreeNode(string text, string path)
            : base(text)
        {
            _path = path;
        }

        /// <summary>
        /// The folder path denoted by this node.
        /// </summary>
        public string FolderPath
        {
            get { return _path; }
            set { _path = value; }
        }
    }
}
